package com.bll.imple.honourAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.bean.HonourBean;
import com.bll.Action;
import com.dao.HonourDao;

public class ShowfHonourAction implements Action {

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		HttpSession session=request.getSession();
		int userId=Integer.parseInt(session.getAttribute("userId").toString());
	    String lujing=request.getParameter("lujing");
	    HonourDao dao=new HonourDao();
	    List<HonourBean> list =dao.selectByUserId(userId);
	   // System.out.println("bean:"+bean);
	    request.setAttribute("list", list);
		return lujing;
	}
}
